package com.atguigu.gulimall.member;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication
@MapperScan("com/atguigu/gulimall/member/dao")
@EnableDiscoveryClient//注册nacos
@EnableFeignClients(basePackages = "com.atguigu.gulimall.member.feign") //远程调用，远程调用时一定要将服务注册到nacos
public class GulimallMemberApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimallMemberApplication.class, args);
        System.out.println("会员服务启动成功");
    }

}
